package com.baoyouqun.service;

import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baoyouqun.domain.CreateCmd.InvoiceOrderRelCreateCmd;
import com.baoyouqun.domain.Query.InvoiceOrderRelQuery;
import com.baoyouqun.domain.UpdateCmd.InvoiceOrderRelUpdateCmd;
import com.baoyouqun.domain.VO.InvoiceOrderRelVO;
import com.baoyouqun.entity.InvoiceOrderRel;

public interface InvoiceOrderRelService extends IService

        <InvoiceOrderRel> {

    /**
     * 新增并返回实体
     */
    SingleResponse<InvoiceOrderRelVO> create(InvoiceOrderRelCreateCmd cmd);

    Response update(InvoiceOrderRelUpdateCmd cmd);

    /**
     * 根据ID查询VO
     */
    InvoiceOrderRelVO selectById(String id);

    /**
     * 分页查询VO
     */
    IPage<InvoiceOrderRelVO> pageVo(InvoiceOrderRelQuery query);
}